package edu.citadel.domain;

import edu.citadel.db.WorkDao;
import org.springframework.beans.factory.annotation.Autowire;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Configurable;

import java.util.List;

/**
 * User: jordan
 * Date: 3/10/13
 * Time: 1:52 PM
 */
@Configurable(autowire = Autowire.BY_TYPE)
public class Work {
    @Autowired
    private WorkDao workDao;
    private String assignedWork;
    private WorkItem workItem;
    private int employeeId;
    private List<EmployeeCompensation> compensationList;


    public Work(WorkItem item, int employeeId) {
        this.workItem = item;
        this.employeeId = employeeId;
    }

    public void addCompensation(EmployeeCompensation compensation) {
        compensationList.add(compensation);
    }

    public List<EmployeeCompensation> getCompensationList() {
        return compensationList;
    }

    public void setCompensationList(List<EmployeeCompensation> compensationList) {
        this.compensationList = compensationList;
    }

    public WorkItem getWorkItem() {
        return workItem;
    }

    public void setWorkItem(WorkItem workItem) {
        this.workItem = workItem;
    }

    public String getAssignedWork() {
        return assignedWork;
    }

    public void setAssignedWork(String assignedWork) {
        this.assignedWork = assignedWork;
    }

    public int getEmployeeId() {
        return employeeId;
    }

    public void setEmployeeId(int employeeId) {
        this.employeeId = employeeId;
    }

    public void setWorkDao(WorkDao workDao) {
        this.workDao = workDao;
    }
}
